package com.candoo.boot.base.autoconfigure.security;

import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import com.candoo.boot.base.autoconfigure.data.DataAutoConfiguration;
import com.candoo.root.security.SecurityConfiguration;

@Configuration
@ConditionalOnClass(SecurityConfiguration.class)
@ConditionalOnProperty(prefix = "security.basic", name = "enabled", matchIfMissing = true)
@AutoConfigureAfter(DataAutoConfiguration.class)
@Import({SecurityConfiguration.class})
public class SecurityAutoConfiguration {

}
